﻿@model Model.SysRoleInfo
@{
    ViewBag.Title = "RoleAdd";
    Layout = "~/Views/Shared/_Main.cshtml";
}
<link href="../../CSS/PageStyle.css" rel="stylesheet" type="text/css" />
<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
 
<script type="text/javascript"> 
    function back() {
        window.location.href = "/SysRole/RoleList";
    }
</script>
@using (Html.BeginForm("Create", "SysRole"))
{
    @Html.ValidationSummary(true)
    <div id="p" class="easyui-panel" style="width: 800px; padding: 10px 5px 10px 5px;"
        data-options="title:'角色信息添加',iconCls:'icon-edit'">
        <div class="edit_main">
            <div class="editor">
                <div class="editor-label">
                    编码：
                </div>
                <div class="editor-field">
                    @Html.EditorFor(model => model.Code)
                    @Html.ValidationMessageFor(model => model.Code)
                </div>
            </div>

            <div class="editor">
                <div class="editor-label">
                    名称：
                </div>
                <div class="editor-field">
                    @Html.EditorFor(model => model.Name)
                    @Html.ValidationMessageFor(model => model.Name)
                </div>
            </div>
            <div class="editor">
                <div class="editor-label">
                    描述：
                </div>
                <div class="editor-field">
                    @Html.TextBoxFor(model => model.Description)
                    @Html.ValidationMessageFor(model => model.Description)
                </div>
            </div>
            <div class="editor">
                <div class="editor-label">
                    状态：
                </div>
                <div class="editor-field">
                    @Html.DropDownListFor(model => model.Status, WebPortal.Controllers.SystemConfigurationController.DropDownStatus(), "--请选择--")
                </div>
            </div>
            <div class="editor">
                <div class="editor-label" style="padding-top: 15px;">
                    &nbsp;
                </div>
                <div class="editor-field">
                    <input id="Save" type="submit" value=" 保存 " />
                    <input type="button" value=" 返回 " onclick="back();" />
                </div>
            </div>
        </div> 
    </div>
    
}
